package io.renren.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.commons.tools.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
* 信息投票
*
* @author liuyujun 384880231@qq.com
* @since 3.0 2022-01-13
*/
@Data
@ApiModel(value = "信息投票")
public class AssemblyVoteDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID",hidden = true)
    private Long id;
    @ApiModelProperty(value = "主题")
    private String title;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "图片")
    private String imgurl;
    @ApiModelProperty(value = "备选项")
    private String alternative;
    @ApiModelProperty(value = "投票ID")
    private Long allowVotersId;
    @ApiModelProperty(value = "投票人区域")
    private Integer allowVotersRange;
    @ApiModelProperty(value = "投票人类型")
    private Integer allowVotersType;
    @ApiModelProperty(value = "结果")
    private String result;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(value = "匿名")
    private Boolean anonymous;
    @ApiModelProperty(value = "多选")
    private Boolean checks;
    @ApiModelProperty(value = "说明")
    private String remark;
    @ApiModelProperty(value = "创建人",hidden = true)
    private String creator;
    @ApiModelProperty(value = "创建时间",hidden = true)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createDate;
    @ApiModelProperty(value = "逻辑删除",hidden = true)
    private Boolean logicalDelete;

}